package com.bdth.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;

/**
 * easyui树形treenode
 *
 * @author: 徐斌
 * @Date: 2016-07-05 14:05
 */
public class ETreeNode implements Serializable {


	public String id;

	public String pid;

	public String text;

	public Boolean checked;

	public Boolean leaf;

	public String iconCls;

	public String state;

	public Hashtable attributes;

	public List<ETreeNode> children;


	public ETreeNode() {
		checked = false;
		attributes = new Hashtable();
		children = new ArrayList<ETreeNode>();
		state = "closed";
	}

	public ETreeNode(String _id, String _text, String pid) {
		this.id = (_id);
		text = _text;
		leaf = false;
		this.iconCls = ("");
		this.pid = (pid);
		attributes = new Hashtable();
		children = new ArrayList<ETreeNode>();
	}

	public ETreeNode(String _id, String _text, String pid, String _iconCss) {
		this.id = (_id);
		text = _text;
		leaf = false;
		this.iconCls = _iconCss;
		this.pid = (pid);
		attributes = new Hashtable();
		children = new ArrayList<ETreeNode>();
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public Boolean getLeaf() {
		return leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Hashtable getAttributes() {
		return attributes;
	}

	public void setAttributes(Hashtable attributes) {
		this.attributes = attributes;
	}

	public List<ETreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<ETreeNode> children) {
		this.children = children;
	}
}
